-- Leafy Glade


function autoexec()

  return
end

function refresh()
  return
end

function postexec()
return
end


function zone_handler(zn)
  if (zn == 1) then
    if (get_progress(P_STONE) == 0) or (get_progress(P_STONE) == 1) then
      change_map("land","glade_exit");  
    else
    bubble(HERO1,"I think I should close the secret stairway first.")
    end  

  elseif (zn == 2) then
    --Open secret stairway
    if (get_progress(P_STONE) == 1) then
      bubble(HERO1,"Ughh")
      set_ftile("move_stone", 18)
      set_zone("move_stone", 4)
      set_mtile("stone", 0)
      set_zone("stone", 5)
      set_obs("move_stone",1)
      set_obs("stone", 0)
      bubble(HERO1,"Ah..hah what do we have here?")
      set_progress(P_STONE,2)
     
    else
    --do nothing
    end

   elseif (zn == 3) then
                            
   elseif (zn == 4) then
    bubble(HERO1,"Ughh")
    set_ftile("move_stone", 151)
    set_zone("move_stone", 6)
    set_mtile("stone", 18)
    set_zone("stone", 2)
    set_obs("move_stone",1)
    set_obs("stone", 1)
    bubble(HERO1,"There... no one will be able to tell.")
    set_progress(P_STONE,1)  

   elseif (zn == 5) then
     --To tunnel to tower across the lake.
     change_map("tunnel2","tun2_e");
     set_ftile("move_stone", 151)
     set_zone("move_stone", 6)
     set_mtile("stone", 18)
     set_zone("stone", 2)
     set_obs("move_stone",1)
     set_obs("stone", 1)
     --bubble(HERO1,"There... no one will be able to tell.")
     set_progress(P_STONE,1)


end
           end
function entity_handler(en)
  if (en == 0) then
  end


  end

